package com.fengmi.service.impl;

import com.fengmi.entity.BasicDic;
import com.fengmi.mapper.BasicDicMapper;
import com.fengmi.service.BasicDicService;
import com.fengmi.vo.InfoResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Author: 施俊豪
 * Date: 2022/1/25 17:04
 * Note:
 */
@Service
public class BasicDicServiceImpl implements BasicDicService {

    @Autowired(required = false)
    private BasicDicMapper basicDicMapper;
    @Override
    public InfoResult<List<BasicDic>> findBasicDic(String name) {
        List<BasicDic> basicDicList = basicDicMapper.findBasicDic(name);
        return new InfoResult<List<BasicDic>>(true,"查询成功!!",basicDicList);
    }
}
